package cn.iocoder.yudao.module.scenic.controller.admin.trip.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Schema(description = "管理后台 - 线路新增/修改 Request VO")
@Data
public class TripSaveReqVO {

    @Schema(description = "自增主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "16984")
    private Long id;

    @Schema(description = "线路名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "线路名称不能为空")
    private String name;

    @Schema(description = "线路描述", example = "你猜")
    private String description;

    @Schema(description = "归属城市ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "12151")
    @NotNull(message = "归属城市ID为空")
    private Long deptId;

    @Schema(description = "图片地址", example = "xxx")
    private String picAddress;

    @Schema(description = "实践点ID集合", requiredMode = Schema.RequiredMode.REQUIRED, example = "12151")
    @NotEmpty(message = "实践点ID集合不能为空")
    private List<Long> spotIdList;

}